package com.smartwebx.ha.web.admin.module.screen.user;

import java.io.IOException;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.turbine.dataresolver.Param;
import com.google.common.base.Splitter;
import com.smartwebx.ha.biz.assign.HaUserManager;

public class AjaxDeleteUser {
	@Autowired
	private HaUserManager haUserManager;
	
	public void execute(@Param("userids") String userids) throws IOException{
		Iterable<String> ids=Splitter.on(",").trimResults().split(userids);
		for(String userid:ids){
			haUserManager.delUser(Integer.parseInt(userid));
		}
	}

}
